package com.hong.demo.other.fsm.impl;

import com.hong.demo.other.fsm.inf.IFSMEvent;

/**
 * 事件定义
 */
public enum OrderEvent implements IFSMEvent {
    PAY(1, "用户支付"),
    APPLY_FOR_REFUND(2, "申请退款"),
    APPLY_FOR_RETURN_GOODS(2, "申请退货");

    public int code;
    public String name;

    OrderEvent(int code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }
}
